package homework;

import framework.Product;

public class Homework extends Product {
    private final String owner;

    public Homework(String owner) {
        System.out.println("建立" + owner + "的作业。");
        this.owner = owner;
    }

    @Override
    public void use() {
        System.out.println("写" + this.owner + "的作业。");
    }

    public String getOwner() {
        return this.owner;
    }
}
